﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CslData;

namespace ErrorAttemptDownloader
{
    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
                Try();
            }
            //task.Wait();
            //Console.WriteLine(Encoding.UTF8.GetString(task.Result));
            //Console.ReadLine();
        }

        static void Try()
        {
            var task = new Downloader("http://localhost:6880/", 100).DD();
            var str = Encoding.UTF8.GetString(task);
            Console.WriteLine(task.Length);
            Console.WriteLine(str);
            Console.WriteLine("===========");
        }

    }
}
